package org.leon.service.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "lagou-service-email", path = "/email")
public interface EmailService {

    @PostMapping("/{email}/{code}")
    Boolean sendEmail(@PathVariable("email") String email, @PathVariable("code") String code);

}
